<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <div class="change_pass">
            <h3 style="color: #3F8AAC; margin: 5px 0 0 5px;">Employer's Account: Hi &nbsp;<h:outputText value="#{employeeManagedBean.emp.empName}" /></h3>
            <p style="margin-left: 5px;">
                The Employer's account allows you to post job advertisements to the Jamit Demo Job Board. It also allows you to browse resumes that were posted to Jamit Demo. You can also create a business profile, which is similar to an online business card which you can then use to promote your business to potential candidates.
            </p>        

            <h3 style="color: #3F8AAC; margin: 5px 0 0 5px;">Report</h3>
            <p class="p_help">
                Employer's Account
                Your Employer's account allows you to post job advertisements to the VLBT.
                It also allows you to browse resumes that were posted to VLBT.
                You can also create a business profile,
                which is similar to an online business card which you can then use to promote your business to potential candidates.
            </p>
            <p class="p_help">
                <b style="color: darkorange">Report by vacancy</b><br/><br/>

                <h:form>
                    <h:selectOneMenu style=" margin-left: 5px;" valueChangeListener="#{interviewsManagedBean.report}">
                        <f:selectItems value="#{interviewsManagedBean.listItemInterviews}" ></f:selectItems>
                        <f:ajax event="valueChange" render="output" />
                        <f:ajax event="valueChange" render="output1" />
                        <f:ajax event="valueChange" render="output3" />
                        <f:ajax event="valueChange" render="output2" />
                    </h:selectOneMenu>
                    <p></p>
                    &nbsp; <b>Inprocess</b> :<h:outputText id="output3" value="#{interviewsManagedBean.inprocessvacancy}"/> .<br/>
                    &nbsp; <b>Hired</b> :<h:outputText id="output1" value="#{interviewsManagedBean.hiredvacancy}"/> .<br/>
                    &nbsp; <b>Banned</b> :<h:outputText id="output2" value="#{interviewsManagedBean.bannedvacancy}"/><br/><br/>
                    <f:view>
                        <h:dataTable style="width: 795px; margin-left: 5px;" columnClasses="bd_td,bd_td,bd_td,bd_td" cellpadding="0" cellspacing="0" border="0" styleClass="joblist" rowClasses="list_footer_cell" headerClass="list_header_cell" id="output" value="#{interviewsManagedBean.listInterviews}" var="item">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Name"/>
                                </f:facet>
                                <h:commandLink action="#{interviewsManagedBean.showReportDetails(item)}" value="#{item.applicants.applicantName}" >
                                    <f:setPropertyActionListener value="#{item}" target="#{interviewsManagedBean.inter}"  />
                                </h:commandLink>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Phone"/>
                                </f:facet>
                                <h:outputText value="#{item.applicants.appPhone}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Email"/>
                                </f:facet>
                                <h:outputText value="#{item.applicants.appEmail}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Status"/>
                                </f:facet>
                                <h:panelGroup rendered="#{item.inStatus == 0}">
                                    <h:outputText value="Inprocess"/>
                                </h:panelGroup>
                                <h:panelGroup rendered="#{item.inStatus == 2}">
                                    <h:outputText value="Hired"/>
                                </h:panelGroup>
                                <h:panelGroup rendered="#{item.inStatus == 3}">
                                    <h:outputText value="Banned"/>
                                </h:panelGroup>
                            </h:column>
                        </h:dataTable>
                    </f:view>
                </h:form>
            </p>
            <hr/>
            <p class="p_help">
                <b style="color: darkorange">Total Applicants Hired : ${interviewsManagedBean.hired}</b><br/><br/>

                <h:panelGroup rendered="${interviewsManagedBean.hired >0}">
                    <f:view>
                        <h:form>
                            <h:dataTable style="width: 795px; margin-left: 5px;" columnClasses="bd_td,bd_td,bd_td,bd_td" cellpadding="0" cellspacing="0" border="0" styleClass="joblist" rowClasses="list_footer_cell" headerClass="list_header_cell"  value="#{interviewsManagedBean.listHiredApplicants}" var="item">
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Name"/>
                                    </f:facet>
                                    <h:commandLink action="#{interviewsManagedBean.showReportDetails(item)}" value="#{item.applicants.applicantName}" >
                                        <f:setPropertyActionListener value="#{item}" target="#{interviewsManagedBean.inter}"  />
                                    </h:commandLink>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Phone"/>
                                    </f:facet>
                                    <h:outputText value="#{item.applicants.appPhone}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Email"/>
                                    </f:facet>
                                    <h:outputText value="#{item.applicants.appEmail}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Status"/>
                                    </f:facet>
                                    <h:outputText value="Hired"/>
                                </h:column>
                            </h:dataTable>
                        </h:form>
                    </f:view>
                </h:panelGroup>
            </p>
            <h:form>
                <p><h:commandLink action="#{interviewsManagedBean.finInterdetails}" value="adas"/></p>
            </h:form>
            <hr/>
            <p class="p_help">
                <b style="color: darkorange">Total Applicants Banned :  ${interviewsManagedBean.banned}</b><br/><br/>

                <h:panelGroup rendered="${interviewsManagedBean.banned >0}">
                    <f:view>
                        <h:form>
                            <h:dataTable style="width: 795px; margin-left: 5px;" columnClasses="bd_td,bd_td,bd_td,bd_td" cellpadding="0" cellspacing="0" border="0" styleClass="joblist" rowClasses="list_footer_cell" headerClass="list_header_cell"  value="#{interviewsManagedBean.listBannedApplicants}" var="item">
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Name"/>
                                    </f:facet>
                                    <h:commandLink action="#{interviewsManagedBean.showReportDetails(item)}" value="#{item.applicants.applicantName}" >
                                        <f:setPropertyActionListener value="#{item}" target="#{interviewsManagedBean.inter}"  />
                                    </h:commandLink>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Phone"/>
                                    </f:facet>
                                    <h:outputText value="#{item.applicants.appPhone}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Email"/>
                                    </f:facet>
                                    <h:outputText value="#{item.applicants.appEmail}"/>
                                </h:column>
                                <h:column>
                                    <f:facet name="header">
                                        <h:outputText value="Status"/>
                                    </f:facet>
                                    <h:outputText value="Banned"/>
                                </h:column>
                            </h:dataTable>
                        </h:form>
                    </f:view>
                </h:panelGroup>
            </p>            
        </div>
    </h:body>
</html>

